package com.sjw.workflow.core;

import java.util.Map;

/**
 * Agent执行结果
 */
public class AgentResult {
    private String agentId;
    private ExecutionStatus status;
    private Map<String, Object> output;
    private String error;
    private long executionTime;
    
    public AgentResult() {}
    
    public AgentResult(String agentId, ExecutionStatus status, Map<String, Object> output) {
        this.agentId = agentId;
        this.status = status;
        this.output = output;
        this.executionTime = System.currentTimeMillis();
    }
    
    public String getAgentId() {
        return agentId;
    }
    
    public void setAgentId(String agentId) {
        this.agentId = agentId;
    }
    
    public ExecutionStatus getStatus() {
        return status;
    }
    
    public void setStatus(ExecutionStatus status) {
        this.status = status;
    }
    
    public Map<String, Object> getOutput() {
        return output;
    }
    
    public void setOutput(Map<String, Object> output) {
        this.output = output;
    }
    
    public String getError() {
        return error;
    }
    
    public void setError(String error) {
        this.error = error;
    }
    
    public long getExecutionTime() {
        return executionTime;
    }
    
    public void setExecutionTime(long executionTime) {
        this.executionTime = executionTime;
    }
}
